/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.company.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nguyentien
 */
@Entity
@Table(name = "FAQs")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "FAQs.findAll", query = "SELECT f FROM FAQs f"),
    @NamedQuery(name = "FAQs.findByFAQid", query = "SELECT f FROM FAQs f WHERE f.fAQid = :fAQid"),
    @NamedQuery(name = "FAQs.findByTitle", query = "SELECT f FROM FAQs f WHERE f.title = :title"),
    @NamedQuery(name = "FAQs.findByContent", query = "SELECT f FROM FAQs f WHERE f.content = :content"),
    @NamedQuery(name = "FAQs.findByEmployeeId", query = "SELECT f FROM FAQs f WHERE f.employeeId = :employeeId"),
    @NamedQuery(name = "FAQs.findByTimeCreate", query = "SELECT f FROM FAQs f WHERE f.timeCreate = :timeCreate"),
    @NamedQuery(name = "FAQs.findByStatus", query = "SELECT f FROM FAQs f WHERE f.status = :status")})
public class FAQs implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "FAQ_id")
    private Integer fAQid;
    @Size(max = 255)
    @Column(name = "title")
    private String title;
    @Size(max = 2147483647)
    @Column(name = "content")
    private String content;
    @Column(name = "employee_id")
    private Integer employeeId;
    @Column(name = "time_create")
    @Temporal(TemporalType.TIMESTAMP)
    private Date timeCreate;
    @Column(name = "status")
    private Boolean status;

    public FAQs() {
    }

    public FAQs(Integer fAQid) {
        this.fAQid = fAQid;
    }

    public Integer getFAQid() {
        return fAQid;
    }

    public void setFAQid(Integer fAQid) {
        this.fAQid = fAQid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public Date getTimeCreate() {
        return timeCreate;
    }

    public void setTimeCreate(Date timeCreate) {
        this.timeCreate = timeCreate;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (fAQid != null ? fAQid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FAQs)) {
            return false;
        }
        FAQs other = (FAQs) object;
        if ((this.fAQid == null && other.fAQid != null) || (this.fAQid != null && !this.fAQid.equals(other.fAQid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.company.entity.FAQs[ fAQid=" + fAQid + " ]";
    }
    
}
